@import "../utils/_color";

.order {
  display: flex;
  align-content: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-box-pack: justify;
  -webkit-box-lines: multiple;
}

.row-direction {
  flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
}

.order-item {
  flex-grow: 0;
  flex-shrink: 0;
}

.horizontal-order {
  display: flex;
  align-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-box-lines: multiple;
  -webkit-box-pack: start;
}

.team {
  font-size: 0;
  position: relative;
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
  transform: scale(1);
  border-radius: 10px;
  background-repeat: no-repeat;
  background-size: cover;

  .blue-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    background-image: linear-gradient(rgba($black, 0.01), rgba($black, 0.7));
  }

  .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .player-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    zoom: 1;
    width: 57px;
    height: 57px;
    transition-property: opacity, transform;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-image: url(~@/assets/images/icon/player-icon.png);
  }

  &.active, &.fe-focus {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: hidden;
    //border: 5px solid $primary;
    transform: scale(1.05);
    transform-origin: 50% 100%;
    opacity: 1;
    animation-fill-mode: backwards;

    img {
      //position: absolute;
      //top:-5px;
      //left:-5px;
      //border: 5px solid $primary;
    }

    &.first {
      transform-origin: 0 100%;
    }

    &.last {
      transform-origin: 100% 100%;
    }

    .mask {
      opacity: 1;
      border: 5px solid $primary;
    }

    .player-icon {
      cursor: pointer;
      opacity: 1;
    }
  }
}
